<script setup>
import { ref } from 'vue'
import Navi from './components/Navi.vue'
import Contents from './components/Contents.vue'

const currentComponent = ref('Content1')

const handleFeatureSelect = (componentName) => {
  currentComponent.value = componentName
}
</script>

<template>
  <div class="app-container">
    <Navi @feature-selected="handleFeatureSelect" />
    <Contents :current-component="currentComponent" />
  </div>
</template>

<style scoped>
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}
</style>
